<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
 
<div ng-app="" ng-init="tt='hello angular1';quantity=1;price=5">
     <p>名字 : <input type="text" ng-model="name"></p>
     <h1>Hello {{name}}</h1>
     
<br>     说： <input type="text" ng-model="content">

<h3>{{content}}</h3>

 <div >
 <span ng-bind="tt"></span>
 <br>
 <h3>{{tt}}</h3>
 
  <br>
 <h3>{{1+1}}</h3>
  <h3>{{15*3}}</h3>
    <h3>{{15/3}}</h3>
      <h3>{{15-3}}</h3>
 </div>
 
 
 <h2>价格计算器</h2>

数量: <input type="number" ng-model="quantity">
价格: <input type="number" ng-model="price">

<p><b>总价:</b> {{quantity * price}}</p>
</div>
 
 

</body>
</html>